Hidden Waifus Hidden Waifus

Devlog 09: Rework Spree

By Lily Linck
Markdown version
Banner

Hi.

In the last few months this game has seen quite a lot of reworks, improving greatly over the original vision to make a high quality product. And this past two weeks increased the pace a lot, finally getting me to the point of being able to work on character poses.

Current Progress

Scenarios Rework

Street

Last time I re-created the Bathroom scenario in Bar level using a 3D model made in Blender as a base.

Now the remaining already playable scenarios in the Bar level (Street, Main Area and Kitchen) were also remade in the same way. All of them come with bigger changes then the first scenario, specially the Kitchen - which now has the camera in a completely different angle.

As reminded last time, Hidden Waifus continues to be a purely 2D game, so the models used achieve better perspective and make the scenarios feel more believable (that could exist in real life).
After studying the best format to ship the models, I've settled with Godot’s recommended .gltf, but still unsure if they should be on the same Git branch as the game (where they serve no purpose), get a new branch or become a part of the website.

One great perk of adding 3D models into the design process is having more opportunities to to reuse scenario elements regardless of position/perspective. Doors and windows were reused the most, followed by tables and chairs - all of them ready to be reused in future level as well.

Collision

Implementing shaders ended up motivating the change from LevelObject to LevelSprite, a trimmed-down class re-written from zero for the Outline Shader, with both improved code and Editor features.

On the same spirit, both the older class LevelDoor and it's child LevelWindow were replaced by the new trimmed and improved LevelEntrance, which not only reduced node count and memory usage but also improved performance even in the editor.

Collision Rework

Instead of using CollisionPolygon2D for every single interactive element in the scene (characters, items, doors, windows, etc), I updated the LevelSprite class allowing to provide either the lighter CollisionShape2D, CollisionPolygon2D or both.

For now door and windows are only using CollisionShape2D because it allows simple polygons, but if needed it will also be updated to use either class for collisions.

Bonus optimization

Rooms

All elements in all levels are already updated to the new classes mentioned before, but one more thing was improved: LevelRoom, the very Rooms used by the levels.
Originally they were a Polygon2D filled with a solid color, as a way to visually indicate in Editor the size of the room. Now they directly extend Node2D and drawing just the border of the room (only in the Editor), avoiding unused draws calls.

Speaking of optimizations, all older classes that were replaced by new code were removed from the code-base.

Next Steps

Do you even pose?

Now that all the planned reworks completed, I finally began playing with the next step in the project: character animations. Both cutout animation and polygon-based skeletal animation, to check which suits the game better to give new poses for the Waifus.

The title of this section will be reused in the future, when I get a satisfactory result making poses. Being something new to me, it will be on second plan of another task:

A new level

As said before, some elements in the 3D models are ready to be reused in new levels - and that is exactly what I plan to do for the Library level. Some of the blueprints for rooms are already finished, which allows me to start making the 3D version.


After months of reworks, optimizations and new techniques, the project is finally seeing bigger progress! But the best is yet to come, so until you the next time. :P

↥ Return to top